package com.black.app.domain.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 功能描述
 *
 * @author tonneyyy
 */
@ApiModel(description = "发送短信验证码请求参数")
@Getter
@Setter
public class SmsReq {
    @ApiModelProperty(value = "手机号", required = true)
    @NotBlank(message = "手机号不能为空")
    private String phone;

    @ApiModelProperty(value = "验证码类型(1，登录，2。注册)", required = true)
    @NotNull(message = "验证码类型不能为空(1，登录，2。注册)")
    private Integer type;
}
